﻿using System;
using System.ComponentModel;

namespace WpfClient
{
    public class MessageInfo
    {
        public string FromUserId { get; set; }
        public string FromUserName { get; set; }
        public string MessageBody { get; set; }
        public DateTime? Stamp { get; set; }
        public MessageBody MessageBodyData { get; set; }
    }
    /// <summary>
    /// 消息结构
    /// </summary>
    public class MessageBody
    {
        /// <summary>
        /// 消息级别
        /// </summary>
        public int MessageLevel { get; set; } = 1;

        /// <summary>
        /// 消息类型
        /// </summary>
        public int MessageType { get; set; } = 1;

        /// <summary>
        /// 消息内容
        /// </summary>
        public string MessageContent { get; set; }

        /// <summary>
        /// 消息相关ID
        /// </summary>
        public string MessageID { get; set; }

        /// <summary>
        /// 消息状态
        /// </summary>
        public int MessageState{ get; set; } = 1;

    }
   /// <summary>
   /// 消息级别
   /// </summary>
    public enum MessageBodyLevel
    {
        [Description("一级")]
        lv1 = 1,
        [Description("二级")]
        lv2 = 2
    }

    /// <summary>
    /// 消息级别
    /// </summary>
    public enum MessageBodyType
    {
        [Description("普通消息")]
        Normal = 1,
        [Description("危急值")]
        CriticalVal = 2
    }

    /// <summary>
    /// 消息状态
    /// </summary>
    public enum MessageState
    {
        [Description("未处理")]
        UnHandle = 1,
        [Description("已处理")]
        Handle = 2
    }

}
